Skip to content

Add method to clear header extensions#360

Merged
boks1971 merged 2 commits into
mainfrom
raja_clear_extensions
May 1, 2026
Merged

Add method to clear header extensions#360
boks1971 merged 2 commits into
mainfrom
raja_clear_extensions

Conversation

@boks1971
Copy link
Copy Markdown
Contributor

@boks1971 boks1971 commented May 1, 2026

Adding a method to clear RTP header extensions.
Also, modifying DelExtension to clear the extension flag if DelExtension will delete the last extension.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.64%. Comparing base (9edff4e) to head (f6ea08a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #360      +/-   ##
==========================================
+ Coverage   82.60%   82.64%   +0.03%     
==========================================
  Files          28       28              
  Lines        3433     3440       +7     
==========================================
+ Hits         2836     2843       +7     
  Misses        427      427              
  Partials      170      170              
Flag Coverage Δ
go 82.64% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Adding a method to clear RTP header extensions.
Also, modifying `DelExtension` to clear the extension flag if
DelExtension will delete the last extension.
@boks1971 boks1971 force-pushed the raja_clear_extensions branch from 4bdd4e0 to 44cd517 Compare May 1, 2026 08:10
@boks1971 boks1971 changed the title Add method to clear header extensions. Add method to clear header extensions May 1, 2026
@boks1971 boks1971 requested a review from JoTurk May 1, 2026 08:12
Copy link
Copy Markdown
Member

@JoTurk JoTurk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I wonder what is your use case?

Comment thread packet.go
if len(h.Extensions) == 0 {
h.Extension = false
h.ExtensionProfile = 0
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, would be cool to include a unit test for Marshal to make sure we don't set the extension bit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will have a look.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added here @JoTurk

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@boks1971
Copy link
Copy Markdown
Contributor Author

boks1971 commented May 1, 2026

Thank you, I wonder what is your use case?

Exporting to some thing like gstreamer pipeline where the extensions are not useful. Just need the payload.

@boks1971 boks1971 force-pushed the raja_clear_extensions branch from fdcdb80 to 0b3423a Compare May 1, 2026 09:08
@boks1971 boks1971 force-pushed the raja_clear_extensions branch from 0b3423a to f6ea08a Compare May 1, 2026 09:10
@boks1971 boks1971 merged commit 77ebb16 into main May 1, 2026
19 checks passed
@boks1971 boks1971 deleted the raja_clear_extensions branch May 1, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants